﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BenCaoXuan.Infrastructure.Dto.Admin.product
{
    public class AddProductPackage_Dto
    {
        /// <summary>
        /// 封面
        /// </summary>
        public string? coverImage { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string? description { get; set; }

        /// <summary>
        /// 优惠说明(备注)
        /// </summary>
        public string? discountDescription { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? endDate { get; set; }

        /// <summary>
        /// 套餐名称
        /// </summary>
        public string? name { get; set; }

        /// <summary>
        /// 原价
        /// </summary>
        public double? originalPrice { get; set; }

        /// <summary>
        /// 优惠价格
        /// </summary>
        public double? sellingPrice { get; set; }

        /// <summary>
        /// 选择的产品/规格
        /// </summary>
        public List<SelectedProduct_Dto>? selectedSpecs { get; set; }
    }

    /// <summary>
    /// 套餐选中的产品详情类
    /// </summary>
    public class SelectedProduct_Dto()
    {
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? productName { get; set; }

        /// <summary>
        /// 产品id
        /// </summary>
        public string? productId { get; set; }

        /// <summary>
        /// 产品规格id
        /// </summary>
        public string? specId { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public double? price { get; set; }

        /// <summary>
        /// 产品规格名称
        /// </summary>
        public string? name { get; set; }

    }
}
